﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PetroMentor.Service.Manager;
using PetroMentor.Service.Common;

namespace PetroMentor.Service
{
    /// <summary>
    /// LoginHandler 的摘要说明
    /// </summary>
    public class LoginHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string dept = context.Request.QueryString[Consts.LOGIN_DEPTID];

            //模块
            string username = context.Request.QueryString[Consts.LOGIN_USERNAME];
            string pwd = context.Request.QueryString[Consts.LOGIN_PASSWORD];

            T_CFG_USER user = new T_CFG_USER() { NAME = "guor", ALIAS = "郭睿", LOGINFLAG = 1 };

            string temp = SerializeManager.ObjectToJson(user);
            context.Response.Write(temp);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}